﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="albumsSys.aspx.cs" Inherits="MxWeiXinPF.Web.admin.albums.albumsSys" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <title></title>
    <%=PageJSAndStype("edit").ToString() %>
    <script type="text/javascript">
        //窗口API
        var api = top.dialog.get(window); //获取父窗体对象


      



        $(function () {

            //设置按钮及事件
            api.button([{
                value: '确定',
                callback: function () {
                    submitForm();
                    return false;

                },
                autofocus: true
            }, {
                value: '取消',
                callback: function () { }
            }
            ]);

            //初始化表单验证
            $("#form1").initValidform();

            //初始化上传控件
            $(".upload-attach").InitUploader({ filesize: "<%=siteConfig.imgsize %>", sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf", filetypes: "<%=siteConfig.fileextension %>" });


        });

        //提交表单处理
        function submitForm() {
            //验证表单
            if ($("#txtImgUrl").val() == "") {
                top.dialog({
                    title: '提示',
                    content: '没有找到已上传的图片，请上传！',
                    okValue: '确定',
                    ok: function () { }
                }).showModal(api);
                return false;
            }


            $("#btnSubmit").click();

            api.close(selectPicValue).remove();

        }

    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:HiddenField ID="hidwid" runat="server" Value="0" />
        <asp:HiddenField ID="hidid" runat="server" Value="0" />
        <div class="div-content">
            <div class="dl-attach-box" id="div_userupload">
                <dl>
                    <dt>首页底图</dt>
                    <dd>

                        <asp:Image ID="imgfacePicPic" runat="server" ImageUrl="/images/noneimg.jpg" Style="max-height: 120px;" /><br />
                        <asp:TextBox ID="txtImgUrl" runat="server" CssClass="input normal upload-path" />

                        <div class="upload-box upload-attach"></div>

                        <span class="Validform_checktip">
                            <br />
                            *（尺寸：宽宽1366像素，高1799像素） 小于200k;</span>


                    </dd>
                </dl>

            </div>
        </div>
        <asp:Button ID="btnSubmit" runat="server" Text="提交保存" Style="display: none;" OnClick="btnSubmit_Click" />


    </form>
</body>
</html>
